public class Animal {
    public static void main(String args[]) {
     class Dog extends Animal{
         public void shout(){
             System.out.println("汪汪。。。");
         }
     }
     public class Example11{
         public static void main(String[] args){
             Dog dog=new dog();
             dog.shout();
         }
     }
    }
}
